<template>
	<view class="nav-bar-white">
		<view :style="{height:statusBarHeight+'px'}"></view>
		<uni-nav-bar left-icon="left" background-color="#FFF" color="#000" @clickLeft="back" title="规格明细" :border="false" fixed="true"></uni-nav-bar>
	</view>
	<view class="body-content-padding" :style="{marginTop:statusBarHeight+45+'px'}">
		
		<view class="flex-col" v-for="(item,index) in skuList" :key="index">
			
			<view class="sku-item">
				<view style="margin-left: 20rpx;">
					<text>颜色：白色</text>
				</view>
				<view class="sku-input">
					<view class="flex-row items-center">
						<view class="flex-row items-center" style="width: 20%;">
							<text>卖价</text>	
							<text style="color: #D64444;">*</text>
						</view>
						<input style="width: 80%;" v-model="price" placeholder="请输入售卖价格" />
					</view>
					<view class="line" style="margin-top: 30rpx;margin-bottom: 30rpx;"></view>
					<view class="flex-row items-center">
						<view class="flex-row items-center" style="width: 20%;">
							<text>原价</text>	
							<text style="color: #D64444;">*</text>
						</view>
						<input style="width: 80%;" v-model="price" placeholder="请输入划线价格" />
					</view>
					<view class="line" style="margin-top: 30rpx;margin-bottom: 30rpx;"></view>
					<view class="flex-row items-center">
						<view class="flex-row items-center" style="width: 20%;">
							<text>库存</text>	
							<text style="color: #D64444;">*</text>
						</view>
						<input style="width: 80%;" v-model="price" placeholder="请输入商品库存" />
					</view>
					<view class="line" style="margin-top: 30rpx;margin-bottom: 30rpx;"></view>
					<view class="flex-row items-center">
						<view class="flex-row items-center" style="width: 20%;">
							<text>编码</text>	
							<text style="color: #D64444;">*</text>
						</view>
						<input style="width: 80%;" v-model="price" placeholder="请输入商品编码" />
					</view>
				</view>
			</view>
			
		</view>
		
		
		
		
		<view class="btn">
			确认
		</view>
	</view>
	
</template>

<script>
	import { useUserStore } from '../../store/userStore';
	export default {
		data() {
			return {
				skuList:[{},{},{}],
				price:''
			};
		},
		computed:{
			statusBarHeight(){
				return useUserStore().statusBarHeight
			}
		},
		methods:{
			back(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
.sku-item{
	display: flex;
	flex-direction: column;
	margin: 15rpx;
}
.sku-input{
	background-color: #fff;
	padding: 30rpx;
	border-radius: 10rpx;
	display: flex;
	flex-direction: column;
	margin-top: 20rpx;
}
.btn{
	height: 80rpx;
	margin-top: 100rpx;
	margin-left: 50rpx;
	margin-right: 50rpx;
	background-color: #3274F9;
	border-radius: 45rpx;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}
</style>
